package com.msmall.community.job;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.msmall.community.question.service.QuestionManager;

public class QuestionJob {
	private static final Log log = LogFactory.getLog(QuestionJob.class);
	private QuestionManager questionManager;

	/**
	 * 每个1小时
	 */
	public void refresh(){
		questionManager.refreshQuestionByClickAmount(10);
		log.debug("QuestionJob finished!");
	}
	
	public void setQuestionManager(QuestionManager questionManager) {
		this.questionManager = questionManager;
	}
}
